<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="../common.jsp"%>
<%@ include file="../GlobalVar.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<link href="../CSS/style.css" rel="stylesheet">
<jsp:setProperty name="mgr" property="*"/>
<jsp:setProperty name="mgrmgr" property="bm" value="${mgr.mc}" />
<c:forEach var="current" items="${mgrmgr.dateById}">
    <c:choose>
        <c:when test="${current.mm==param.mm}">

            <c:choose>
                <c:when test="${current.qx=='a'}">
                    <%session.setAttribute("manager", request.getParameter("mc"));
        response.sendRedirect("index.jsp");%>
                </c:when>
                <c:otherwise>
                    <%session.setAttribute("supermanager", request.getParameter("mc"));
        session.setAttribute("manager", request.getParameter("mc"));
        response.sendRedirect("index.jsp");%>
                </c:otherwise>
            </c:choose>
        </c:when>
        <c:otherwise>
            <%out.println("<script language='javascript'>alert('您输入的管理员或密码错误!');window.location.href='Login_M.jsp';</script>");%>
        </c:otherwise>
    </c:choose>
</c:forEach>
